package com.amway.qy.core.constants;

public class QyWechatUrls {
	/***
	 * 获取 AccessToken
	 * 
	 * @Method: GET
	 * 
	 * @URL https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=CORPID&corpsecret=SECRECT
	 */
	public final static String ACCESS_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken";
	

	/***
	 * 创建 部门信息
	 *	
	 * @Param:  ACCESS_TOKEN
	 * 
	 * @Method: POST
	 * @URL 	https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=ACCESS_TOKEN
	 */
	public final static String  CREATE_DEPT_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/create";

	/***
	 * 更新 部门信息
	 *	
	 * @Param:  ACCESS_TOKEN
	 * 
	 * @Method: POST
	 * @URL https://qyapi.weixin.qq.com/cgi-bin/department/update?access_token=ACCESS_TOKEN
	 */
	public final static String  UPDATE_DEPT_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/update";
	

	/***
	 * 删除 部门信息
	 *	
	 * @Param:  ACCESS_TOKEN
	 * 
	 * @Method: GET
	 *	
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/department/delete?access_token=ACCESS_TOKEN&id=ID
	 *
	 */
	public final static String  DELETE_DEPT_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/delete";
	
	/***
	 * 获取 部门列表
	 *	
	 * @Param:  ACCESS_TOKEN
	 * @Param:  ID -- Dept_id
	 * @Url: 	https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=ACCESS_TOKEN&id=ID
	 * 
	 * @Method: GET
	 *
	 */
	public final static String  LIST_DEPT_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/list";
	

	/**
	 * 创建成员
	 *	
	 * @Param:  ACCESS_TOKEN
	 * 
	 * @Method: POST
	 * 
	 * @URL https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=ACCESS_TOKEN
	 */
	public final static String  CREATE_MEMBER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/create";
	
	/**
	 * 更新成员
	 *	
	 * @Param:  ACCESS_TOKEN
	 * 
	 * @Method: POST
	 *
	 * @URL https://qyapi.weixin.qq.com/cgi-bin/user/update?access_token=ACCESS_TOKEN
	 */
	public final static String  UPDATE_MEMBER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/update";
	
	/**
	 * 删除成员
	 *	
	 * @Param:  ACCESS_TOKEN
	 * @Param:  USERID  -->userId 
	 * 
	 * @Method: GET
	 * 
	 * @URL https://qyapi.weixin.qq.com/cgi-bin/user/delete?access_token=ACCESS_TOKEN&userid=USERID
	 *
	 */
	public final static String  DELETE_MEMBER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/delete";
	
	/**
	 * 批量删除成员
	 *	
	 * @Param:  ACCESS_TOKEN
	 * 
	 * @Method: POST
	 * 
	 * @URL https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete?access_token=ACCESS_TOKEN
	 *
	 */
	public final static String  BATCH_DELETE_MEMBER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete";

	/**
	 * 获取成员
	 *	
	 * @Param:  ACCESS_TOKEN
	 * @Param:  USERID  -->userId 
	 * @Url:	https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&userid=USERID
	 * @Method: GET
	 *
	 */
	public final static String  GET_MEMBER_INFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/get";

	/**
	 * 获取部门成员
	 *	
	 * @Param:  ACCESS_TOKEN
	 * @Param:  DEPARTMENT_ID  
	 * @Param:  FETCH_CHILD -- 1/0：是否递归获取子部门下面的成员
	 * @Param:  STATUS -- 0获取全部成员，1获取已关注成员列表，2获取禁用成员列表，4获取未关注成员列表。status可叠加，未填写则默认为4
	 * @Url: 	https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD&status=STATUS
	 * @Method: GET
	 *
	 */
	public final static String  SIMPLE_LIST_MEMBER_BY_DEPT_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist";

	/**
	 * 获取部门成员(详情)
	 *	
	 * @Param:  ACCESS_TOKEN
	 * @Param:  DEPARTMENT_ID  
	 * @Param:  FETCH_CHILD -- 1/0：是否递归获取子部门下面的成员
	 * @Param:  STATUS -- 0获取全部成员，1获取已关注成员列表，2获取禁用成员列表，4获取未关注成员列表。status可叠加，未填写则默认为4
	 * @Url:	https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD&status=STATUS
	 * @Method: GET
	 *
	 */
	public final static String DETAIL_LIST_MEMBER_BY_DEPT_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/list";

	
	/**
	 * 根据code获取成员信息
	 * 主要是根据Code获取用户的userId
	 * 
	 * @Url: https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
	 * @Method : GET
	 * 
	 * @Return:
	 * a)企业成员授权时返回示例如下：

		{
		   "UserId":"USERID",
		   "DeviceId":"DEVICEID"
		}
	 * 
	 * b)非企业成员授权时返回示例如下：

		{
		   "OpenId":"OPENID",
		   "DeviceId":"DEVICEID"
		}
	 */
	public final static String GET_MEMBER_ID__BY_CODE = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo";
	

	/**
	 * 二次验证
	 * 
	 * @Description 企业在开启二次验证时，必须填写企业二次验证页面的url，此url的域名必须设置为企业小助手的可信域名。当成员绑定通讯录中的帐号后，会收到一条图文消息，引导成员到企业的验证页面验证身份。
	 * 				在跳转到企业的验证页面时，会带上如下参数：code=CODE&state=STATE，企业可以调用oauth2接口，根据code获取成员的userid。
	 * 				企业在成员验证成功后，调用如下接口即可让成员关注成功。
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/user/authsucc?access_token=ACCESS_TOKEN&userid=USERID
	 * 
	 * @Method GET
	 */
	public final static String SECOND_AUTH_SUCCESS = "https://qyapi.weixin.qq.com/cgi-bin/user/authsucc";


	/**
	 * 获取微信服务器的ip段
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/getcallbackip?access_token=ACCESS_TOKEN
	 * @Method GET
	 * 
	 */
	public final static String GET_CALLBACK_IP = "https://qyapi.weixin.qq.com/cgi-bin/getcallbackip";
	
	
	/** 
	 * 统一推送消息的接口
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN
	 * @Method POST
	 */
	public final static String PUSH_MESSAGE="https://qyapi.weixin.qq.com/cgi-bin/message/send";
	
	
	/**
	 * 标签管理相关接口
	 * 
	 */
	
	/**
	 * 创建标签
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/tag/create?access_token=ACCESS_TOKEN
	 * 
	 * @Method POST
	 * 
	 */
	public final static String CREATE_TAG="https://qyapi.weixin.qq.com/cgi-bin/tag/create";
	
	
	/**
	 * 更新标签名字
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/tag/update?access_token=ACCESS_TOKEN
	 * 
	 * @Method POST
	 */
	public final static String UPDATE_TAG="https://qyapi.weixin.qq.com/cgi-bin/tag/update";
	
	/**
	 * 删除标签 
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/tag/delete?access_token=ACCESS_TOKEN&tagid=TAGID
	 * 
	 * @Method GET
	 * 
	 * @Note
	 *  	管理组必须是指定标签的创建者，并且标签的成员列表为空。
	 */
	public final static String DELETE_TAG = "https://qyapi.weixin.qq.com/cgi-bin/tag/delete";
	
	
	/**
	 * 获取标签成员
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/tag/get?access_token=ACCESS_TOKEN&tagid=TAGID
	 * 
	 * @Method GET
	 * 
	 * @Note
	 * 		无限制，但返回列表仅包含管理组管辖范围的成员。
	 * 
	 */
	public final static String LIST_USER_BY_TAG="https://qyapi.weixin.qq.com/cgi-bin/tag/get";
	
	
	/**
	 * 增加标签成员
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/tag/addtagusers?access_token=ACCESS_TOKEN
	 * 
	 * @Method POST
	 * 
	 */
	
	public final static String ADD_TAG_USER="https://qyapi.weixin.qq.com/cgi-bin/tag/addtagusers";
	
	
	/**
	 * 删除标签成员
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/tag/deltagusers?access_token=ACCESS_TOKEN
	 * 
	 * @Method POST
	 * 
	 */
	public final static String REMOVE_TAG_USER="https://qyapi.weixin.qq.com/cgi-bin/tag/deltagusers";
	
	
	/**
	 * 获取标签列表
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/tag/list?access_token=ACCESS_TOKEN
	 * 
	 * @Method GET
	 * 
	 */
	public final static String LIST_TAGS="https://qyapi.weixin.qq.com/cgi-bin/tag/list";
	
	/**
	 * 增量更新成员
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/batch/syncuser?access_token=ACCESS_TOKEN
	 * 
	 * @Method POST
	 * 
	 */
	public final static String BATCH_UPDATE_MEMBER_INCREMENT="https://qyapi.weixin.qq.com/cgi-bin/batch/syncuser";
	
	/**
	 * 全量覆盖成员
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/batch/replaceuser?access_token=ACCESS_TOKEN
	 * 
	 * @Method POST
	 * 
	 */
	public final static String OVERWRITE_MEMBER_TOTALLY="https://qyapi.weixin.qq.com/cgi-bin/batch/replaceuser";
	
	/**
	 * 全量覆盖部门
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/batch/replaceparty?access_token=ACCESS_TOKEN
	 * 
	 * @Method POST
	 * 
	 */
	public final static String OVERWRITE_DEPARTYMENT_TOTALLY="https://qyapi.weixin.qq.com/cgi-bin/batch/replaceparty";
	
	/**
	 * 获取用于jssdk授权签名的URL
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token={0}
	 * 
	 * @Method Get
	 */
	public final static String OVERWRITE_JSAPI_TICKET = "https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket";
	
	/**
	 * 根据微信企业号回调回来的code获取用户的userid
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token={0}&code={1}
	 * 
	 * @Method GET
	 */
	public final static String GET_USERID_URL="https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo";
	
	/**
	 * 根据用户的userid取到用户的openid
	 * 
	 * @Url https://qyapi.weixin.qq.com/cgi-bin/user/convert_to_openid?access_token={0}
	 * 
	 * @Method POST
	 */
	public final static String USERID2OPENID="https://qyapi.weixin.qq.com/cgi-bin/user/convert_to_openid";
	
}
